home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{9FE255D1-F32E-11D0-9E15-444553540000}#1.0#0"; "MLISTX.OCX"
- Begin VB.Form Form1
- Caption = "List/X+ PutItems Sample"
- ClientHeight = 3510
- ClientLeft = 3090
- ClientTop = 2430
- ClientWidth = 4245
- LinkTopic = "Form1"
- ScaleHeight = 3510
- ScaleWidth = 4245
- Begin MabryCtl.MList MList1
- Height = 3015
- Left = 240
- TabIndex = 0
- Top = 240
- Width = 1935
- _ExtentX = 3413
- _ExtentY = 5318
- Object.TabStop = -1 'True
- MousePointer = -1163005939
- ColRowOrder = -1 'True
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty Columns {23BAA6DE-05A6-11D1-9E15-0020AFD6A9D5}
- ColumnCount = 1
- BeginProperty Column0 {23BAA6E0-05A6-11D1-9E15-0020AFD6A9D5}
- Object.Width = 0
- MinWidth = 0
- MaxWidth = -1
- UserResizeEnabled= -1
- Heading = ""
- Object.Visible = -1
- ColumnAlignment = 0
- HeadingAlignment= 0
- EndProperty
- EndProperty
- End
- Begin VB.Label Label2
- Caption = "Look in the Form_Load procedure to see how it's done."
- Height = 1215
- Left = 2280
- TabIndex = 2
- Top = 1200
- Width = 1695
- End
- Begin VB.Label Label1
- Caption = "This sample shows how to use the PutItems method to quickly add items to a list."
- Height = 855
- Left = 2280
- TabIndex = 1
- Top = 240
- Width = 1695
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Form_Load()
- Dim i As Long
- Dim items(1000) As String
- Me.Left = (Screen.Width - Me.ScaleWidth) / 2
- Me.Top = (Screen.Height - Me.ScaleHeight) * 2 / 5
- Me.Show
- ' fill array with items
- For i = LBound(items) To UBound(items)
- items(i) = i
- Next
- ' put all items in list at once
- MList1.PutItems items
- End Sub
-